import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import {RuleComponent} from "./rule.component";
import {RuleAddComponent} from "./rule-add/rule-add.component";
import {RuleUpdateComponent} from "./rule-update/rule-update.component";

const routes: Routes = [
  {
    path: "",
    component: RuleComponent
  },
  {
    path: "add",
    component: RuleAddComponent
  },
  {
    path: "update",
    component: RuleUpdateComponent
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class RuleRoutingModule { }
